-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace ADO tests with GitHub actions #2855
Conversation
@@ -10,7 +10,6 @@ | |||
<ItemGroup> | |||
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="1.0.30" /> | |||
<PackageReference Include="Microsoft.Azure.WebJobs" Version="2.3.0" /> | |||
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inherited from WebJobs project
internal IHost InnerHost { get; private set; } | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this resolves a build warning
timeout = Debugger.IsAttached ? TimeSpan.FromMinutes(5) : TimeSpan.FromSeconds(30); | ||
timeout = Debugger.IsAttached ? TimeSpan.FromMinutes(5) : TimeSpan.FromMinutes(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GitHub actions + Azurite seems to run tests more slowly, so I added more buffer time
// add a minute wait to ensure logs are fully written | ||
await Task.Delay(TimeSpan.FromMinutes(1)); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more buffer time to account for GH action slowness
{ | ||
if (parent.Id == some.Context.Operation.ParentId) | ||
{ | ||
Console.WriteLine("match"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
writing to console in GitHub actions is flakey and can cause runtime errors. So I removed this, which was only there for debugging purposes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for opening this PR! Just left a couple of comments.
As part of our 1ES migration - we're replacing our ADO unit, integration, and end to tests with GitHub actions that use Azurite as a backing Azure Storage store. This PR does just that: it creates 3 new GitHub actions - one for the analyzer tests, one for the E2E tests, and another for the remaining tests.
Finally, this PR also resolve a myriad of build warnings, for clean up sake.